package com.rem.chat.pojo.request;

import com.rem.chat.common.constants.Constants;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

import java.io.Serializable;

/**
 * @author: Themberfue
 * @date: 2025/6/9 14:35
 * @description:
 */
@Data
public class UserModifyPasswordRequest implements Serializable {
    /**
     * 用户 id
     */
    @NotBlank(message = "用户id不能为空")
    private String userId;

    /**
     * 旧密码
     */
    @NotBlank(message = "旧密码不能为空")
    @Pattern(regexp = Constants.REGEX_PASSWORD, message = "密码格式错误")
    private String oldPassword;

    /**
     * 新密码
     */
    @NotBlank(message = "新密码不能为空")
    @Pattern(regexp = Constants.REGEX_PASSWORD, message = "密码格式错误")
    private String newPassword;

    /**
     * 确认密码
     */
    @NotBlank(message = "确认密码不能为空")
    @Pattern(regexp = Constants.REGEX_PASSWORD, message = "密码格式错误")
    private String confirmPassword;
}
